package com.nut.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import java.io.Serializable;
import java.util.Set;
import com.nut.common.Result;
import com.nut.entity.MemberInviteLog;

public interface MemberInviteLogService {

    Result<IPage<MemberInviteLog>> listPage(Integer pageNo, Integer pageSize);

    Result<IPage<MemberInviteLog>> selectPage(Integer pageNo, Integer pageSize);

    Result<MemberInviteLog> getById(Serializable id);

    Result add(MemberInviteLog memberInviteLog);

    Result updateById(MemberInviteLog memberInviteLog);

    Result deleteByIds(Set<Integer> ids);


    /**
     * 添加邀请记录
     *
     * @param fromMemberId   邀请人会员id
     * @param toMemberId 被邀请人会员id
     */
    void add(Long fromMemberId, Long toMemberId);

}